Using Test-Driven Development to refactor a JavaScript project
In the last installment of the series, we'll refactor our codebase to reduce bundle size and complexity, while making it more maintainable.
Browse articles by collection or check out the top picks and latest content below.
In the last installment of the series, we'll refactor our codebase to reduce bundle size and complexity, while making it more maintainable.
Having set up our environment and designed the API, it's time to implement the RegExp library we've been planning, using Vite and Vitest.
Building atop the TDD foundation from last time, let's explore how to design a user-centric API for our JavaScript library.
I recently built a project using Test-Driven Development (TDD) and it was a great experience. Here's why I think you should try it, too.
A few days ago, I stumbled upon a perplexing piece of JavaScript behavior. Let's break it down.
Building on top of everything we've tried in past articles, we'll use the Earley parsing algorithm to parse and evaluate math expressions.
A linked list is a linear data structure where each element points to the next.
Returning to the models and records part of the implementation, this time around we'll explore how to add constraints to individual fields.
Learn common number formatting operations, such as rounding, padding, optional decimal marks, currency, seconds, bytes, and more.
Calculate a SHA-256 hash in JavaScript using native APIs in both the browser and Node.js.
Expanding upon previous articles on bracket matching and tokenization, it's time to try a basic HTML tokenization and validation algorithm.
Picking up where I left off last time, I'm wrapping up the Brainfuck interpreter, by making a simple VM for code execution and debugging.